package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableCaching                              //开启缓存注解功能
@SpringBootApplication                      //启动类注解(类启动器)
@Slf4j                                      //设置日志
@MapperScan("com.itheima.reggie.mapper")    //dao接口扫描
@EnableTransactionManagement                //开启支持事务
public class ManageApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class,args);
        log.info("瑞吉点餐管理者启动完毕!");
    }
}
